<?php
/**
 * Created by Benjamin.
 * Date: 2020/5/8
 * Time: 15:03
 */

namespace App\Model;

use EasySwoole\ORM\AbstractModel;
class UserGroupModel extends AbstractModel
{
    protected $tableName = 'user_groups';
    protected $primaryKey = 'id';

    const ROLE_TYPE_MEMBER = 1;//成员
    const ROLE_TYPE_ADMIN = 2;//管理员
    const ROLE_TYPE_CREATER = 3;//创建人

    const STATUS_NORMAL = 1;#正常状态
    const STATUS_DEL = 0;#退出状态

    #群设置：1接收消息并提醒2接收消息不提醒3收进群助手且不提醒4屏蔽群消息5屏蔽群内图片
    const MSG_SETTING_RECEIVE_AND_WARN = 1;#1接收消息并提醒
    const MSG_SETTING_RECEIVE_BUT_NOT_WARN = 2;#2接收消息不提醒
    const MSG_SETTING_RECEIVE_TO_POCKET_AND_NOT_WARN = 3;#3收进群助手且不提醒
    const MSG_SETTING_IGNORE_ALL = 4;#3收进群助手且不提醒
    const MSG_SETTING_IGNORE_IMG = 5;#3收进群助手且不提醒
}
